/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.server.data.header;

import hope.platform.data.domain.HopeException;

import java.util.Date;
import java.util.List;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/20 14:41
 */
public interface HopeExceptionService {

    List<HopeException> getAll();

    List<HopeException> getByGmtCreateBetween(Date beginTime,Date endTime);

    List<HopeException> getByExceptionType(String exceptionType);

    List<HopeException> getByExceptionTypeAndSerialNumber(String exceptionType, String serialNumber);

    List<HopeException> getByExceptionTypeAndSerialNumberAndDataName(String exception, String serialNumber,
                                                                     String DataName);

    List<HopeException> getBySerialNumber(String serialNumber);

    HopeException addHopeException(HopeException exception);

    List<HopeException> getBySerialNumberAndDataNameAndGmtCreateBetween(
            String serialNumber, String dataName, Date beginTime, Date endTime);

    List<HopeException> getBySerialNumberAndDataNameAndGmtCreateBetweenOrderByGmtCreateDesc(
            String serialNumber, String dataName, Date beginTime, Date endTime);

    long countBySerialNumberAndDataNameAndGmtCreateBetween(
            String serialNumber, String dataName, Date beginTime, Date endTime);

}
